<%@ taglib prefix="s" uri="/struts-tags" %>
<html>

<body>
<center>
<s:if test="#{flag1 }">
<h1>Flag1 is true</h1>
</s:if>
<s:else>
<h3>Flag1 value is false</h3>
</s:else>

<s:if test="#{flag2 }">
<h1>Flag2 is true</h1>
</s:if>
<s:else>
<h3>Flag2 value is false</h3>
</s:else>

<hr><h3>
<s:iterator value="courses">
<s:property/>
</s:iterator>
</h3>

<hr><h3>
<s:subset source="courses" count="5" start="2">
<s:iterator>
<s:property/>
</s:iterator>
</s:subset>
</h3>

<hr><h3>
<s:iterator id="x" value="colors">
<s:property value="x"/>
</s:iterator>
</h3>

<hr><h3>
<s:append id="mylist">
<s:param value="%{colors}"></s:param>
<s:param value="%{courses}"></s:param>
</s:append>
<s:iterator value="%{#mylist}">
<s:property/>
</s:iterator>
</h3>

<hr><h3>
<s:merge id="mylist1">
<s:param value="%{colors}"></s:param>
<s:param value="%{courses}"></s:param>
</s:merge>
<s:iterator value="%{#mylist1}">
<s:property/>
</s:iterator>
</h3>

<hr><h3>
<s:generator separator="," val="%{'aaa,bbb,ccc,ddd'}" count="3">
<s:iterator>
<s:property/>
</s:iterator>
</s:generator>
</h3>

<s:url id="testurl" action="jlcindia/Test.action"></s:url>
<s:a href="%{testurl}">Click Here</s:a>
</center>

</body>
</html>